import tkinter
win=tkinter.Tk()

win.title("中国工商银行系统")

# win.geometry("400x400+200+100")#长字母（x）宽  距屏幕左侧位置  距屏幕上边位置


#EXTEND 可以使listbox支持shift  和ctrl键
lb=tkinter.Listbox(win,selectmode=tkinter.EXTENDED)
for item in["good","nice","handsome","ab","ac","ad","ae","good","nice","handsome","ab","ac","ad","ae"]:
    lb.insert(tkinter.END,item) #END按顺序添加
#shift 实现连选
#ctrl  实现跳选
#添加滚动条
scroll=tkinter.Scrollbar(win)
scroll.pack(side=tkinter.RIGHT,fill=tkinter.Y)
lb.configure(yscrollcommand=scroll.set)
scroll["command"]=lb.yview






lb.pack(side=tkinter.LEFT,fill=tkinter.BOTH)
win.mainloop()